#!/bin/bash
if(test -L $0) then auxlink=`ls -l $0 | sed 's/^[^>]*-> //g'`; M_HOME=`dirname $auxlink`/; else M_HOME=`dirname $0`/; fi; cd $M_HOME
. ../before || exit 1
# try to compile and run a test SDL program
sb2 hardcode_into_libs=no ./configure --prefix=/usr --enable-sdltest
sb2 make
sb2 make DESTDIR=$ROOTFS/ install
touch $ROOTFS/.`basename $0`
